package com.zjitc.serviceedu.service;

import com.zjitc.serviceedu.entity.EduWatchhistory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zjitc.serviceedu.entity.vo.WatchHistoryVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 赵诚挚
 * @since 2024-10-19
 */
public interface EduWatchhistoryService extends IService<EduWatchhistory> {


    void saveOrUpdateWatchHistory(Long userId,Long vid, Long courseId, String videoId, Integer lastPosition);

    EduWatchhistory getWatchHistory(Long userId, String videoId);

    List<WatchHistoryVO> getWatchHistoryList(Long userId);
}
